home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lang_c / cgraphix / chc.c < prev    next >
Text File  |  1986-05-28  |  477b  |  29 lines

  1. /* «RM120»«PL99999»«TS4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76» */
  2. #include    <stdio.h>
  3. #define    EXTERN    extern
  4. #include    <typedef.h>
  5.  
  6.  
  7. main()
  8. {
  9.     int i;
  10.  
  11.  
  12.     InitGraphic();                /* init the system and screen    */
  13.     DefineWorld(1, 0., 0., 1000., 1000.);
  14.     SelectWorld(1);
  15.     SelectWindow(1);
  16.     SetBackground(0);
  17.     DrawBorder();
  18.  
  19.     for (i = 1; i <= 20; i++)
  20.         DrawLine(50.*i, 0., 1000.-50.*i, 50.*i);
  21.  
  22.     hardcopy(0, 1);
  23.  
  24.     LeaveGraphic();
  25.  
  26.  
  27. }
  28.  
  29.